.SUFFIXES : .c .o

OBJS = obj/main.o obj/ciss.o obj/proc.o obj/mem.o obj/disk.o
SRCS = $(OBJS:.o=.c)
SRCS = $(SRCS:obj/=src/)
INCS = 

CC = gcc
AR = ar
AS = as
RM = rm -f

ARFLAGS =
CFLAGS = -g -O2
LDFLAGS = -lm -lelf
ASFLAGS =

TARGET = bin/iss

$(TARGET) : $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS)

clean :
	$(RM) $(OBJS) $(TARGET) core ./bin/core

dep :
	gccmakedep $(SRCS)

obj/%.o: src/%.c
	gcc $(INCS) -c -o $@ $(CFLAGS) $<
